//
//  NRWBaseModel.m
//  NRWMall
//
//  Created by 邢毅 on 2018/5/22.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import "NRWBaseModel.h"

@implementation NRWBaseModel

- (NSString *)description {
    
    return [NSString stringWithFormat:@"%@\n%@", [super description], [self mj_JSONObject]];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {}

- (BOOL)isEqualToOtherBaseModel:(NRWBaseModel *)object {
    
    if ([[object class] isMemberOfClass:self.class]) {
        return NO;
    }
    
    return [[self mj_keyValues] isEqual:[object mj_keyValues]];
}

- (id)copyWithZone:(NSZone *)zone {
    
    return [self.class mj_objectWithKeyValues:[self mj_keyValues]];
}

@end
